﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;

namespace IObjects
{
    public interface IAccount
    {
        AccountInfo AccountInfo
        {
            get;
            set;
        }
        string Mode
        {
            get;
            set;
        }
        int Save();
        IList<AccountInfo> GetAccounts();
        AccountInfo GetById(string id);
        bool Login(string userId, string password, out string message);
        bool ChangePassword(string userId, string newPass);
        bool Lock(string userId);
        bool UnLock(string userId);
        bool Activate(string userId);
        bool DeActivate(string userId);

        IList<AccountInfo> GetAccounts(SearchAccountInfo criteria, out int totalItems);
    }
}
